//
//  SearchTableViewCell.m
//  A_Project_DLS151129_SQ
//
//  Created by 151129-49宋强 on 16/1/29.
//  Copyright © 2016年 www.lanou3g.com蓝鸥. All rights reserved.
//

#import "SearchTableViewCell.h"

@implementation SearchTableViewCell
- (void)dealloc
{
    [_headImgView release];
    [_nameLabel release];
    [_inImgView release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.headImgView = [[UIImageView alloc] init];
        [self.contentView addSubview:_headImgView];
        [_headImgView release];
        self.nameLabel = [[UILabel alloc] init];
        [self.contentView addSubview:_nameLabel];
        [_nameLabel release];
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    _headImgView.frame = CGRectMake(5, 5, 60, 60);
    _nameLabel.frame = CGRectMake(5 + 60 + 5, 10, self.frame.size.width - 70 - 60, 50);
    _headImgView.layer.cornerRadius = _headImgView.frame.size.width / 2;
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
